//package com.ruoyi.school.service.impl;
//
//import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
//import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
//import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
//import com.ruoyi.common.utils.SecurityUtils;
//import com.ruoyi.common.utils.StringUtils;
//import com.ruoyi.common.utils.file.FileUploadUtils;
//import com.ruoyi.common.utils.file.FileUtils;
//import com.ruoyi.school.domain.FirmwarePackage;
//import com.ruoyi.school.domain.dto.FirmwarePackageQueryDto;
//import com.ruoyi.school.domain.vo.FirmwarePackageVo;
//import com.ruoyi.school.mapper.FirmwarePackageMapper;
//import com.ruoyi.school.service.IFirmwarePackageService;
//import org.springframework.beans.BeanUtils;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.stereotype.Service;
//import org.springframework.web.multipart.MultipartFile;
//
//import java.io.File;
//import java.util.Date;
//import java.util.List;
//import java.util.stream.Collectors;
//
///**
// * 固件包信息表服务实现类
// */
//@Service
//public class FirmwarePackageServiceImpl extends ServiceImpl<FirmwarePackageMapper, FirmwarePackage> implements IFirmwarePackageService {
//
//    @Value("${firmware.upload.path}")
//    private String uploadPath;
//
//    @Value("${firmware.upload.max-size}")
//    private long maxSize;
//
//    @Override
//    public List<FirmwarePackageVo> selectFirmwarePackageList(FirmwarePackageQueryDto queryDto) {
//        FirmwarePackage firmwarePackage = new FirmwarePackage();
//        BeanUtils.copyProperties(queryDto, firmwarePackage);
//        return baseMapper.selectFirmwarePackageList(firmwarePackage);
//    }
//
//    @Override
//    public Page<FirmwarePackageVo> selectFirmwarePackagePage(FirmwarePackageQueryDto queryDto) {
//        Page<FirmwarePackageVo> page = new Page<>(queryDto.getPageNum(), queryDto.getPageSize());
//
//        FirmwarePackage firmwarePackage = new FirmwarePackage();
//        BeanUtils.copyProperties(queryDto, firmwarePackage);
//
//        return baseMapper.selectFirmwarePackagePage(page, firmwarePackage);
//    }
//
//    @Override
//    public String uploadFirmware(MultipartFile file, FirmwarePackage firmwarePackage) {
//        return "";
//    }
//
//    @Override
//    public int deleteFirmwarePackageByIds(Long[] ids) {
//        return 0;
//    }
//
//    @Override
//    public int updateStatus(Long id, Integer status) {
//        return 0;
//    }
//
//    @Override
//    public List<FirmwarePackage> selectByDeviceTypeId(Long deviceTypeId) {
//        return List.of();
//    }
//
//    // 其他方法保持不变...
//}
